import request from './request.js';

const key = '125c54f7141d0ef8c0c107fd1ad3cf84';

export const getCityAdcode = (value) => {
  return request({
    method: 'GET',
    url: `/geocode/geo?address=${value}&key=${key}`,
  });
};

export const getThisCityByIp = () => {
    return request({
      method: 'GET',
      url: `/ip?key=${key}`,
    });
  };

